package com.lightjet.macross.base.upms.service;

import com.lightjet.macross.base.feign.api.config.JWTFeignConfig;
import com.lightjet.macross.base.feign.api.dto.awf.FlowDataDTO;
import com.lightjet.macross.base.upms.config.AdminFeignConfig;
import com.lightjet.macross.base.upms.dto.GatewayRouteDefinitionDTO;
import com.lightjet.macross.common.dto.ResponseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author : lijia
 * @version : 1.0 2020-05-15 10:46
 * description : 调用网关API的服务申明类
 */

@FeignClient(value = "base-gateway",configuration = AdminFeignConfig.class)
public interface GateWayClientService {

    @PostMapping("/route")
    public ResponseDTO<String> RouteAdd(@RequestBody GatewayRouteDefinitionDTO gwdefinition);

    @PutMapping("/route")
    public ResponseDTO<String> RouteUpdate(@RequestBody GatewayRouteDefinitionDTO gwdefinition);

    @DeleteMapping("/route/{id}")
    public ResponseDTO<String> RouteDelte(@PathVariable("id") String id);

}
